import requet from "../utils/requet.js";

/* 注册活动-展示 */
export function activeRegister(data) {
  return requet({
    url: "/active/register-view",
    method: "GET",
    data
  });
}

/* 活动简介 */
export function activeBrief(params) {
  return requet({
    url: "/active/brief",
    method: "GET",
    params
  });
}
/* 	签到-展示 */
export function activeSignview(data) {
  return requet({
    url: "/active/sign-view",
    method: "GET",
    data
  });
}

/* 用户签到 */
export function activeSign(data) {
  return requet({
    url: "/active/sign",
    method: "GET",
    data
  });
}

/* 自定义活动 */
export function getActiveCustomizeView(params) {
  return requet({
    url: "/active/customize-view",
    method: "GET",
    params
  });
}

/** 轮盘抽奖 */
export function activeWheel(data) {
  return requet({
    url: "/active/spin-wheel-award",
    method: "PUT",
    data
  });
}

/** 轮盘抽奖记录 */
export function activeWheelRecord(params) {
  return requet({
    url: "/active/spin-wheel-record",
    method: "GET",
    params
  });
}

/** 兑换码使用 */
export function activeExchange(data) {
  return requet({
    url: "/active/redeem-code-used",
    method: "POST",
    data
  });
}

/** 活动弹窗 */
export function getActiveCasinoPopup(data) {
  return requet({
    url: "/casino/popup-info",
    method: "GET",
    data
  });
}

/** 活动列表 */
export function getActiveList(data) {
  return requet({
    url: "/active/list",
    method: "GET",
    data
  });
}